{extend name="./template/default/m/pub/base.html" /}
{block name="seo"}
<title>漫画排行榜-{$site_name}</title>
{/block}
{block name="content"}
{include file="./template/default/m/pub/top2.html" /}
<div class="rank-selector">
    <a class="rank-selector-item active" href="javascript:void(0);" onclick="btnClick(this,'#rankList_1');">新番榜</a>
    <a class="rank-selector-item" href="javascript:void(0);" onclick="btnClick(this,'#rankList_2'); ">人气榜</a>
    <a class="rank-selector-item" href="javascript:void(0);" onclick="btnClick(this,'#rankList_3'); ">完结榜</a>
    <a class="rank-selector-item" href="javascript:void(0);" onclick="btnClick(this,'#rankList_4');">推荐榜</a>
</div>
<div class="rank-list-con">
    <ul class="rank-list" id="rankList_1">
        {raccoon:books name="books" order="last_time desc" limit="10"}
        <a href="/{$book_ctrl}/{$vo.param}" title="{$vo.book_name}">
            <li>
                <div class="rank-list-cover">
                    <img class="rank-list-cover-img lazy" data-original="{$vo.cover_url}"
                         src="https://p.pstatp.com/origin/ffa400036691f82c85e5" alt="{$vo.book_name}">
                </div>
                <div class="rank-list-info">
                    <div class="rank-list-info-left">
                        <span class="rank-list-info-left-index top-{$i-1}">{$i-1}</span>
                    </div>
                    <div class="rank-list-info-right">
                        <p class="rank-list-info-right-title">{$vo.book_name}</p>
                        <p class="rank-list-info-right-subtitle">{$vo.summary|subtext=15}...</p>
                    </div>
                </div>
            </li>
        </a>
        {/raccoon:books}
    </ul>
    <ul class="rank-list" id="rankList_2">
        {raccoon:books name="books" order="hits desc" limit="10"}
        <a href="/{$book_ctrl}/{$vo.param}" title="{$vo.book_name}">
            <li>
                <div class="rank-list-cover">
                    <img class="rank-list-cover-img lazy" data-original="{$vo.cover_url}"
                         src="https://p.pstatp.com/origin/ffa400036691f82c85e5" alt="{$vo.book_name}">
                </div>
                <div class="rank-list-info">
                    <div class="rank-list-info-left">
                        <span class="rank-list-info-left-index top-{$i-1}">{$i-1}</span>
                    </div>
                    <div class="rank-list-info-right">
                        <p class="rank-list-info-right-title">{$vo.book_name}</p>
                        <p class="rank-list-info-right-subtitle">{$vo.summary|subtext=15}...</p>
                    </div>
                </div>
            </li>
        </a>
        {/raccoon:books}
    </ul>
    <ul class="rank-list" id="rankList_3">
        {raccoon:books name="books" order="last_time desc" where="end=1" limit="10"}
        <a href="/{$book_ctrl}/{$vo.param}" title="{$vo.book_name}">
            <li>
                <div class="rank-list-cover">
                    <img class="rank-list-cover-img lazy" data-original="{$vo.cover_url}"
                         src="https://p.pstatp.com/origin/ffa400036691f82c85e5" alt="{$vo.book_name}">
                </div>
                <div class="rank-list-info">
                    <div class="rank-list-info-left">
                        <span class="rank-list-info-left-index top-{$i-1}">{$i-1}</span>
                    </div>
                    <div class="rank-list-info-right">
                        <p class="rank-list-info-right-title">{$vo.book_name}</p>
                        <p class="rank-list-info-right-subtitle">{$vo.summary|subtext=15}...</p>
                    </div>
                </div>
            </li>
        </a>
        {/raccoon:books}
    </ul>
    <ul class="rank-list" id="rankList_4">
        {raccoon:books name="books" order="last_time desc" where="is_top=1" limit="10"}
        <a href="/{$book_ctrl}/{$vo.param}" title="{$vo.book_name}">
            <li>
                <div class="rank-list-cover">
                    <img class="rank-list-cover-img lazy" data-original="{$vo.cover_url}"
                         src="https://p.pstatp.com/origin/ffa400036691f82c85e5" alt="{$vo.book_name}">
                </div>
                <div class="rank-list-info">
                    <div class="rank-list-info-left">
                        <span class="rank-list-info-left-index top-{$i-1}">{$i-1}</span>
                    </div>
                    <div class="rank-list-info-right">
                        <p class="rank-list-info-right-title">{$vo.book_name}</p>
                        <p class="rank-list-info-right-subtitle">{$vo.summary|subtext=15}...</p>
                    </div>
                </div>
            </li>
        </a>
        {/raccoon:books}
    </ul>
</div>
<div class="noDataFont" style="padding:10px;font-size:12px;color:#767676;text-align: center;">主人，下面木有了~</div>
<script>
    function btnClick(item,c) {
        $('.rank-selector-item').removeClass('active');
        $(item).addClass('active');
        $('.rank-list').hide();
        $(c).show();
        $('body').scrollTop(0);
    }
</script>
{/block}